//
// Created by 24087 on 25-6-2.
//

#include "Key.h"
extern uint8_t txData[2];

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
	if (GPIO_Pin == Key_Pin)
	{
		txData[0] = 0xFF;
		HAL_UART_Transmit_IT(&huart1, txData, sizeof(txData));
		HAL_NVIC_DisableIRQ(EXTI0_IRQn);
	}
}
